//
//  BanBu_TransmitCell.m
//  BanBu
//
//  Created by Wang Xj on 13-12-11.
//
//

#import "BanBu_TransmitCell.h"
#import "BanBu_ImageView.h"

@implementation BanBu_TransmitCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.editing = NO;
        self.editingAccessoryType = UITableViewCellAccessoryNone;
        UIView * lineView = [[UIView alloc] initWithFrame:CGRectMake(-40, 53, 360, 1.0)];
        lineView.backgroundColor = [UIColor colorWithRed:224.0/255 green:224.0/255 blue:224.0/255 alpha:1.0];
        [self.contentView addSubview:lineView];
        [lineView release];
        
        BanBu_ImageView *backImage = [[BanBu_ImageView alloc] initWithBackGroundImageType:UIImageViewCreatTypeCell];
        backImage.frame = CGRectMake(0, 0, 320, 58);
        self.backgroundView = backImage;
        [backImage release];

        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void) setEditing:(BOOL)editting animated:(BOOL)animated
{
	if (self.editing == editting)
	{
		return;
	}
	
	[super setEditing:NO animated:NO];
	
}

@end
